package org.wk.common.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

/**
 * 
 * @ClassName	: SmsCode
 * @Package		：org.wk.common.domain
 * @Author df.w 
 * @Create Time	：2018年5月3日 下午4:21:29
 * @Description	: 短信验证码
 */
@Entity(name="org.wk.common.domain.SmsCode")
@Table(name="s_sms")
public class Sms extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;
	
	
	/**
	 * @Fields mobileNumber: String
	 * @Desc TODO: 手机号码
	 */
	private String mobileNumber;
	
	
	
	/**
	 * @Fields sendTime: Date
	 * @Desc TODO: 发送时间
	 */
	@Column
	@Temporal(TemporalType.TIMESTAMP)
	private Date sendTime;
	
	
	/**
	 * @Fields expireTime: Date
	 * @Desc TODO: 过期时间
	 */
	@Column
	private Date expireTime;
	
	
	/**
	 * @Fields smsCode: String
	 * @Desc TODO: 短信验证码
	 */
	@Column
	private String smsCode;
	
	
	/**
	 * @Fields smsCodeType: String
	 * @Desc TODO: 短信验证码类型
	 */
	@Column
	private String smsCodeType;
	
	/**
	 * @Fields smsContent: String
	 * @Desc TODO: 短信内容
	 */
	@Column
	private String smsContent;



	/**
	 * @return the id
	 */
	
	public String getId() {
		return id;
	}



	
	/**
	 * @param id 要设置的 id
	 */
	
	public void setId(String id) {
		this.id = id;
	}



	/**
	 * @return the mobileNumber
	 */
	
	public String getMobileNumber() {
		return mobileNumber;
	}



	
	/**
	 * @param mobileNumber 要设置的 mobileNumber
	 */
	
	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}



	/**
	 * @return the sendTime
	 */
	
	public Date getSendTime() {
		return sendTime;
	}



	
	/**
	 * @param sendTime 要设置的 sendTime
	 */
	
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}



	/**
	 * @return the expireTime
	 */
	
	public Date getExpireTime() {
		return expireTime;
	}



	
	/**
	 * @param expireTime 要设置的 expireTime
	 */
	
	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}



	/**
	 * @return the smsCode
	 */
	
	public String getSmsCode() {
		return smsCode;
	}



	
	/**
	 * @param smsCode 要设置的 smsCode
	 */
	
	public void setSmsCode(String smsCode) {
		this.smsCode = smsCode;
	}



	/**
	 * @return the smsContent
	 */
	
	public String getSmsContent() {
		return smsContent;
	}



	
	/**
	 * @return the smsCodeType
	 */
	
	public String getSmsCodeType() {
		return smsCodeType;
	}




	
	/**
	 * @param smsCodeType 要设置的 smsCodeType
	 */
	
	public void setSmsCodeType(String smsCodeType) {
		this.smsCodeType = smsCodeType;
	}




	/**
	 * @param smsContent 要设置的 smsContent
	 */
	
	public void setSmsContent(String smsContent) {
		this.smsContent = smsContent;
	}
	
	
	
	
	
	
}
